package com.graduation.lastproject.service.admin.AdminBasicActive.impl;


import com.graduation.lastproject.dao.admin.AdminDao;
import com.graduation.lastproject.entity.Admin;
import com.graduation.lastproject.service.admin.AdminBasicActive.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

@Service
public class IAdminService  implements AdminService{

    @Autowired
    private AdminDao adminDao;
    @Override
    public Admin getAdminInfoByName(String loginsname) {
        return adminDao.getAdminInfoByName(loginsname);
    }

    @Override
    public int uploadAdminInfo(Map<String, Object> map) {
        return adminDao.uploadAdminInfo(map);
    }
}
